package com.htthorizon.model.mapper;

import cn.hutool.core.date.DateTime;
import com.htthorizon.model.domain.ModelCrossAudit;
import com.htthorizon.model.request.ModelCrossAuditSearchReq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Brilliant
* @description 针对表【model_cross_audit】的数据库操作Mapper
* @createDate 2023-12-19 16:03:36
* @Entity com.htthorizon.model.domain.ModelCrossAudit
*/
@Mapper
public interface ModelCrossAuditMapper {

    int deleteByPrimaryKey(@Param("id") Long id);

    int insert(ModelCrossAudit record);

    int insertSelective(ModelCrossAudit record);

    ModelCrossAudit selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ModelCrossAudit record);

    int updateByPrimaryKey(ModelCrossAudit record);

    List<ModelCrossAudit> selectBySearch(@Param("search") ModelCrossAuditSearchReq search,@Param("pageNum")int pageNum,@Param("pageSize")int pageSize);

    List<ModelCrossAudit> getModelCrossAudit(@Param("date")DateTime date, @Param("userId")Long userId);

    int selectCount(@Param("search")ModelCrossAuditSearchReq modelCrossAuditSearchReq);
}
